Change in openvpn[master]: iservice: fix DNS address list generation
A message that is not in the archive (sent off-list or not yet received): gerrit.1762092816000.I7252d5a252e91ffc03db142aa226c9eb1656480b@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email
to review the following change.
Change subject: iservice: fix DNS address list generation
......................................................................
iservice: fix DNS address list generation
While generating the address list string for the DNS server addresses, to be set in the registry, the offset is calculated the wrong way. This results in gaps between addresses after the first two.
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/1339/1
src/openvpnserv/interactive.c +1 -1
@@ -1873,7 +1873,7 @@ {RtlIpv4AddressToStringA (&msg->addr[i].ipv4, addrs + offset); } - offset +=strlen (addrs); + offset =strlen (addrs); } err =SetNameServers (iid, msg->family, addrs);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7252d5a252e91ffc03db142aa226c9eb1656480b
Gerrit-Change-Number: 1339
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
stipa has posted comments on this change by d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email )
Change subject: iservice: fix DNS address list generation
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7252d5a252e91ffc03db142aa226c9eb1656480b
Gerrit-Change-Number: 1339
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Mon, 03 Nov 2025 10:28:32 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 iservice: fix DNS address list generation
In reply to a message not in the archiveFrom: Heiko Hund <[email protected]...>
While generating the address list string for the DNS server addresses, to be set in the registry, the offset is calculated the wrong way. This results in gaps between addresses after the first two.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1339
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1339
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Lev Stipakov <[email protected]...>
src/openvpnserv/interactive.c +1 -1
@@ -1873,7 +1873,7 @@ {RtlIpv4AddressToStringA (&msg->addr[i].ipv4, addrs + offset); } - offset +=strlen (addrs); + offset =strlen (addrs); } err =SetNameServers (iid, msg->family, addrs);
[Openvpn-devel] [PATCH applied] Re: iservice: fix DNS address list generation
Thanks. Patch looks good, trivial enough :-) - the discussion about the issue and the patch was in the private repo we have for possibly security related issues (which this isn't, it will just effectively ignore the 3rd and 4th nameserver IP).
Your patch has been applied to the master branch.
The bug is not in release/2.6 as it came in with the "use registry and no longer netsh" windows DNS rewrite for 2.7
commit 235aa8858b9999c14603ff1d12c91c855d5dcf94
Author: Heiko Hund Date: Mon Nov 3 12:59:40 2025 +0100
iservice: fix DNS address list generation
Signed-off-by: Heiko Hund <[email protected]...>
Acked-by: Lev Stipakov <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1339
Message-Id: <[email protected]...>
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by stipa
Change subject: iservice: fix DNS address list generation
......................................................................
iservice: fix DNS address list generation
While generating the address list string for the DNS server addresses, to be set in the registry, the offset is calculated the wrong way. This results in gaps between addresses after the first two.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1339
Message-Id: <[email protected]...>
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/1339/2
src/openvpnserv/interactive.c +1 -1
@@ -1873,7 +1873,7 @@ {RtlIpv4AddressToStringA (&msg->addr[i].ipv4, addrs + offset); } - offset +=strlen (addrs); + offset =strlen (addrs); } err =SetNameServers (iid, msg->family, addrs);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7252d5a252e91ffc03db142aa226c9eb1656480b
Gerrit-Change-Number: 1339
Gerrit-PatchSet: 2
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email )
Change subject: iservice: fix DNS address list generation
......................................................................
iservice: fix DNS address list generation
While generating the address list string for the DNS server addresses, to be set in the registry, the offset is calculated the wrong way. This results in gaps between addresses after the first two.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1339
Message-Id: <[email protected]...>
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpnserv/interactive.c +1 -1
@@ -1873,7 +1873,7 @@ {RtlIpv4AddressToStringA (&msg->addr[i].ipv4, addrs + offset); } - offset +=strlen (addrs); + offset =strlen (addrs); } err =SetNameServers (iid, msg->family, addrs);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1339?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7252d5a252e91ffc03db142aa226c9eb1656480b
Gerrit-Change-Number: 1339
Gerrit-PatchSet: 2
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>